package com.songlanyun.modules.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.supplychainapi.goods.model.GoodsDetailResult;
import com.songlanyun.modules.goods.entity.GoodsSku;
import com.songlanyun.modules.goods.model.values.SkuItem;
import com.songlanyun.modules.goods.model.vo.SkuComItemVo;
import com.songlanyun.modules.singlegoods.entity.ProductSingleGoodsEntity;

import java.util.List;

/**
 * 商品的规格的关系表（一个商品可能会有多个规格，各个规格中要关联单品）
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-05 10:01:59
 */
public interface GoodsSkuService extends IService<GoodsSku> {
    void branchCreate(Long goodsId, List<GoodsSku> list);

    /**
     * 获得商品的sku集合给移动端
     * @param goodsId
     * @return
     */
    List<SkuComItemVo> loadSkuItemList(Long goodsId);
    GoodsSku loadByGoodsAndSkuHashCode(Long goodsId,String skuHashCode);
    void clearByGoodsId(Long goodsId);

    List<GoodsSku> loadGoodsSkuList(long goodsId);


}

